import { http } from '@/utils/request'

// 手机号密码登录
export const loginByPassword = (data) => http.post('/api/auth/login/password', data)

// 手机号验证码登录
export const loginBySms = (data) => http.post('/api/auth/login/sms', data)

// 发送验证码
export const sendSmsCode = (data) => http.post('/api/sms/code', data)

// 手机号注册 (可选，因为现在首次登录会自动注册)
export const registerByPassword = (data) => http.post('/api/auth/register/password', data)

// 微信登录
export const loginByWechat = (data) => http.post('/api/auth/login/wechat', data)

// 刷新token
export const refreshToken = () => http.post('/api/auth/refresh')



